package com.anycl.design.structural.flyweight.demo;

/**
 * 考生的考试信息
 */
public class ExamInfo {

    private String user;
    private String subject;

    public ExamInfo(String subject) {
        this.subject = subject;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "ExamInfo{" +
                "user='" + user + '\'' +
                ", subject='" + subject + '\'' +
                '}';
    }
}
